let router = {
	
	page: function(url, status = 0, delta = 1) {
		if (url) {
			if (status == 0) {
				uni.navigateTo({
					url: url,
					success() {
						
					},
					fail(e) {
						console.log(e);
					}
				});
			} else if (status == 1) {
				uni.redirectTo({
					url: url,
					success() {
						
					},
					fail(e) {
						console.log(e);
					}
				})
			} else if (status == 2) {
				uni.switchTab({
					url: url,
					success() {
						
					},
					fail(e) {
						console.log(e);
					}
				})
			}
		} else {
			uni.navigateBack({
				delta: delta
			});
		}
	}
}
export default router;